<?php

include('funct.php');
session_start();
#zmienne();
$sql="select * from wizyty where data like '".$_SESSION['data']." ".$_POST['czas']."%' and id_gab = ".$_SESSION['wyb_gab'];
$sql_check = mysql_query($sql);  
if(mysql_num_rows($sql_check))  
{  
echo '<font color="#cc0000"><STRONG>Zajęte !!!</STRONG></font>';  
}  
else  
{  
echo 'OK';  
} 
?>
